import request from "@/api/product/trademark";
const state = {
    tradeInfo : ''
};

const mutations = {
    TRADE_LIST(state,list){
        state.tradeInfo = list
    }
};

const actions = {
    // 初始化数据
  async tradeActions({commit},{pageNum,pageSize}) {
    try {
      let result = await request.getPageList(pageNum, pageSize);
      commit('TRADE_LIST',result.data)
    } catch (error) {
      console.log("初始化品牌失败");
    }
  },
  
};

const getters = {};

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
};
